package org.gitman.agent;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;

import org.gitman.agent.gui.MainFrame;
import org.gitman.agent.tools.SwingConsole;

import com.mxgraph.model.mxCell;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String confFile = System.getProperty("view");
		Properties properties = new Properties();
			try {
				properties.load(new FileInputStream(confFile));
				Integer width = Integer.parseInt(properties.get("mainFrame.width").toString());
				Integer height = Integer.parseInt(properties.get("mainFrame.height").toString());
				String laf = properties.getProperty("mainFrame.laf");
				MainFrame mainFrame = new MainFrame(laf, confFile);
				SwingConsole.run(mainFrame, width, height);
			} catch (IOException e) {
				e.printStackTrace();
			}
		
	}
}
